package com.smart_environmental_protection.service.ServiceImp;

import com.smart_environmental_protection.dao.PurposeDao;
import com.smart_environmental_protection.pojo.Purpose;
import com.smart_environmental_protection.service.PurposeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PurposeServiceImp  implements PurposeService {
    @Resource
    private PurposeDao purposeDao;

    @Override
    public List<Purpose> purList() {
        return purposeDao.purList();
    }

    @Override
    public Purpose purDetail(int id) {
        return purposeDao.purDetail(id);
    }
}
